package com.baomidou.springboot.entity.enums;

import java.io.Serializable;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 必须现在 IEnum 配置 该包扫描自动注入，查看文件 spring-mybatis.xml 参数 typeEnumsPackage
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TypeEnum implements IEnum {
	DISABLED(0, "禁用"), NORMAL(1, "正常");

	private Integer value;
	private String desc;

	TypeEnum(final Integer value, final String desc) {
	        this.value = value;
	        this.desc = desc;
	    }

	@Override
	public Integer getValue() {
		return this.value;
	}

	public String getDesc() {
		return this.desc;
	}
}
